package com.liy.cloud.base.entity;

import com.liy.cloud.common.ext.entity.ExtBaseVO;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Auther: libs
 * @Date: 2018/6/25 09:06
 * @Description: 部件信息维护类
 */
@JsonIgnoreProperties({"language", "tempField"})
public class BaseEquPartEntity extends ExtBaseVO<String> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     @NotEmpty 验证字符串不为null或者不为空
     @NotBlank 验证字符串不为null或者trim()后不为空
     */

    /**
     * 部件名称
     */
    @Size(max=40, message="{common.validation.length}")
    private String name;

    /**
     * 部件大类编号
     */
    @Size(max=2, message="{common.validation.length}")
    private String typeCode;
    private String typeName;

    /**
     * 是否计数
     */
    @Size(max=1, message="{common.validation.length}")
    private String countFlag;

    /**
     * 容量下限
     */
    @Size(max=6, message="{common.validation.length}")
    private String containLow;

    /**
     * 容量下限报警值
     */
    @Size(max=6, message="{common.validation.length}")
    private String containLowWarn;

    /**
     * 容量上限
     */
    @Size(max=6, message="{common.validation.length}")
    private String containHigh;

    /**
     * 容量上限报警值
     */
    @Size(max=6, message="{common.validation.length}")
    private String containHighWarn;

    /**
     * 备注
     */
    @Size(max=500, message="{common.validation.length}")
    private String memo;

    /**
     * 状态
     */
    @Size(max=2, message="{common.validation.length}")
    private String status;

    private String createByName;
    private String lastUpdateByName;

    /**
     * 用于关联设备种类部件，判断部件是否可选
     */
    private boolean selectable;

    /**
     * 用于关联设备种类部件，小类序号
     */
    private String sno;

    /**
     * 用于关联设备种类部件，设备种类编号
     */
    private String equTypeId;

    /**
     * 用于关联设备种类部件，判断小类序号是否为编辑状态
     */
    private boolean isEditSno;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getCountFlag() {
        return countFlag;
    }

    public void setCountFlag(String countFlag) {
        this.countFlag = countFlag;
    }

    public String getContainLow() {
        return containLow;
    }

    public void setContainLow(String containLow) {
        this.containLow = containLow;
    }

    public String getContainLowWarn() {
        return containLowWarn;
    }

    public void setContainLowWarn(String containLowWarn) {
        this.containLowWarn = containLowWarn;
    }

    public String getContainHigh() {
        return containHigh;
    }

    public void setContainHigh(String containHigh) {
        this.containHigh = containHigh;
    }

    public String getContainHighWarn() {
        return containHighWarn;
    }

    public void setContainHighWarn(String containHighWarn) {
        this.containHighWarn = containHighWarn;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateByName() {
        return createByName;
    }

    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    public String getLastUpdateByName() {
        return lastUpdateByName;
    }

    public void setLastUpdateByName(String lastUpdateByName) {
        this.lastUpdateByName = lastUpdateByName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public boolean isSelectable() {
        return selectable;
    }

    public void setSelectable(boolean selectable) {
        this.selectable = selectable;
    }

    public boolean getIsEditSno() {
        return isEditSno;
    }

    public void setIsEditSno(boolean isEditSno) {
        this.isEditSno = isEditSno;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getEquTypeId() {
        return equTypeId;
    }

    public void setEquTypeId(String equTypeId) {
        this.equTypeId = equTypeId;
    }
}
